from django.db import models

class Chating(models.Model):
    photo = models.URLField(max_length=256, blank=True)
    content = models.TextField(blank=True)
    user_id = models.IntegerField(default=0, blank=True)
    chating_time = models.CharField(max_length=100, blank=True)
    user_photo = models.URLField(max_length=256, blank=True)
    user_username = models.CharField(max_length=100, blank=True)
    other_id = models.IntegerField(default=0, blank=True)
    # username = models.CharField(max_length=100, blank=True)

    def __str__(self):
        return self.user_username + ' - ' + self.content

